using System;

namespace F2Enum.Converters
{
    public class FloatConverter : ConverterBase<float>
    {
        public override float Convert(string value)
        {
            float result;
            if (float.TryParse(value, out result))
                return result;
            throw new InvalidCastException("The Value Format Is Incorrect");
        }
    }
}